/**
 * 功能描述
 */

define(function (require, exports, module) {
	var Grid = require("grid");
	var aw = require("ajaxwrapper");
	var store =require("store");
	var activeUser = store.get("user");
	var Form = require("form");
	var Dialog = require("dialog");
    var instance = {
        initComponent: function (params,widget) {
        	var grid = new Grid({
        		parentNode: ".J-grid",
        		model:{
        			url:"api/cate/travelaccountflow/employeeCount",
        			params:function(){
        				var subnav = widget.get("subnav");
//        				return{
////        					"attendant.servicePoint.pkServicePoint":subnav.getValue("servicePoint"),
//        					"accountType":"Attendant",
//        					fetchProperties:"*,attendant.personalInfo.name,attendant.personalInfo.sex,attendant.personalInfo.idNumber,attendant.cno"
//        				}
        			},
        			columns:[{
        				name:"personName",
        				label:"员工姓名"
        			},{
        				name:"idNumber",
        				label:"身份证号"
        			},{
        				name:"sex",
        				label:"性别"
        			},{
        				name:"money",
        				label:"消费金额"
        			}]
        		},
        		
        	});
        	widget.set("grid",grid)
        }
    };
    module.exports = instance;
});
